package com.theo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Component
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RefutationInfo对象", description="")
public class RefutationInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "辟谣信息编号")
    @TableId(value = "refutation_id", type = IdType.AUTO)
    private Integer refutationId;

    @ApiModelProperty(value = "谣言编号")
    private Integer rumourId;

    @ApiModelProperty(value = "辟谣信息标题")
    private String refutationTitle;

    @ApiModelProperty(value = "辟谣信息内容")
    private String refutationContent;

    @ApiModelProperty(value = "辟谣日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty(value = "辟谣结果")
    private Character result;

    @ApiModelProperty(value = "辟谣结果解释")
    private String explain;

    @ApiModelProperty(value = "辟谣机构")
    private String author;

    @ApiModelProperty(value = "发布用户")
    private Integer userId;

    @ApiModelProperty(value = "发布用户名称")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "发布用户昵称")
    @TableField(exist = false)
    private String loginName;


}
